package com.asambleacristiana.domain;

import java.io.Serializable;

import javax.persistence.Entity;
import javax.persistence.Id;
import javax.persistence.JoinColumn;
import javax.persistence.ManyToOne;
import javax.persistence.Table;

@Entity
@Table(name = "rol_permiso")
public class RolPermiso implements Serializable{
	/**
	 * 
	 */
	private static final long serialVersionUID = 1L;

	@Id
	@ManyToOne
    @JoinColumn(name="id_permiso")
	private Permiso permiso;    
	
	@Id
	@ManyToOne
    @JoinColumn(name="id_rol")
    private Rol rol;

	public void setPermiso(Permiso permiso) {
		this.permiso = permiso;
	}

	public Permiso getPermiso() {
		return permiso;
	}

	public void setRol(Rol rol) {
		this.rol = rol;
	}

	public Rol getRol() {
		return rol;
	}
    
}
